<template>
  <div v-if="bol" id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      bol: true
    }
  },
  provide() {
    return {
      info: '通过：今天6天走人',
      fn: this.fn,
      reload: this.reload,
      that: this
    }
  },
  created() {},
  methods: {
    fn(str) {
      console.log('我是app的fn', str)
    },
    reload() {
      console.log('reload')
      this.bol = false
      this.$nextTick(() => {
        this.bol = true
      })
    }
  }
}
</script>
<style lang="scss" scoped></style>
